const routes = [
    {name:"Login",
        path:"/login",
        component: () => import('@/login')
    },
    {name:"Index",
        path:"/index",
        component: () => import('@/Index/index'),
        children: [
            {name:"Supplier",
                path: "/Index/supplier",
                component:() => import ('@/Index/supplier')
            },
            {name:"Customer",
                path: "/Index/customer",
                component:() => import ('@/Index/customer')
            },
            {name:"Buyer",
                path: "/Index/buyer",
                component:() => import ('@/Index/buyer')
            },
            {name:"BuyerInfo",
                path: "/Index/buyerInfo",
                component:() => import ('@/Index/buyerInfo')
            },
            {name:"Sell",
                path: "/Index/sell",
                component:() => import ('@/Index/sell')
            },
            {name:"SellInfo",
                path: "/Index/sellInfo",
                component:() => import ('@/Index/sellInfo')
            },
            {name:"Product",
                path: "/Index/product",
                component:() => import ('@/Index/product')
            },
            {name:"CountSell",
                path: "/Index/countSell",
                component:() => import ('@/Index/countSell')
            },
            {name:"CountMonthSell",
                path: "/Index/countMonthSell",
                component:() => import ('@/Index/countMonthSell')
            },
            {name:"User",
                path: "/Index/user",
                component:() => import ('@/Index/user')
            },
            {name:"Role",
                path: "/Index/role",
                component:() => import ('@/Index/role')
            },
            {name:"ChangePwd",
                path: "/Index/changePwd",
                component:() => import ('@/Index/changePwd')
            },
            {name:"Journal",
                path: "/Index/journal",
                component:() => import ('@/Index/journal')
            }
        ]
    }];

export default routes ;